﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using Rison.BusinessFacade.Common;

using Rison.BusinessFacade.Facade.XT;

namespace Rison.Web.ascx
{
    public partial class SiteMapPath : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["DepartID"]))
                {
                    SysUserFacade fa = new SysUserFacade();
                    this.LabDepartmentName.Text = fa.GetDepartmentName(Request.QueryString["DepartID"].ToString());
                    
                }

                if(!string.IsNullOrEmpty(Request.QueryString["type"]))
                {
                    string type = Request.QueryString["type"].ToString();
                    if(type=="1")
                        LabType.Text=ExamType.网站基本信息填报.ToString();
                    else if(type=="2")
                        LabType.Text = ExamType.网站测评指标自查.ToString();
                    else if(type=="3")
                        LabType.Text = ExamType.网站特色项目申报表.ToString();
                }

            }

            
        }

        public string departid
         {
             get
             {
                 return string.IsNullOrEmpty(Request.QueryString["DepartID"]) ? "" : Request.QueryString["DepartID"];
             }
         }

        public string type
        {
            get
            {
                return string.IsNullOrEmpty(Request.QueryString["type"]) ? "" : Request.QueryString["type"];
            }
        }
    }
}